package com.etone.fileServer.vo.file;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author: sovy
 * @date: 2020/11/4
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(description = "文件详情")
public class FileVO {

    @ApiModelProperty("文件名称")
    private String name;

    @ApiModelProperty("文件目录")
    private String absolutePath;

    @ApiModelProperty("上一级目录")
    private String parent;

    @ApiModelProperty("文件大小(单位B)")
    private Long size;

    @ApiModelProperty("扩展名")
    private String extension;

    @ApiModelProperty("是:文件，否：文件夹")
    private Boolean isFile;

    @ApiModelProperty("最后修改时间")
    private LocalDateTime lastModifyTime;
}
